package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * DishFlavorMapper
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/7/28 14:13
 */
@Mapper
public interface DishFlavorMapper {
    /**
     * ins批
     *
     * @param flavors 口味
     */
    void insertBatch(List<DishFlavor> flavors);

    /**
     * 按盘删除id
     *
     * @param dishIds dishIds
     */
    void deleteByDishIds(List<Long> dishIds);

    /**
     * 选择通过菜id
     *
     * @param dishId dishId
     * @return {@link List}<{@link DishFlavor}>
     */
    List<DishFlavor> selectByDishId(Long dishId);

    /**
     * 选择菜id列表
     *
     * @param dishIds 菜id
     * @return {@link List}<{@link DishFlavor}>
     */
    List<DishFlavor> selectListByDishIds(List<Long> dishIds);
}
